package com.doyens.gmall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doyens.gmall.model.product.SpuSaleAttr;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Classname:SpuSaleAttrMapper
 * PackageName:com.doyens.gmall.product.mapper
 *
 * @Author:uyijk
 * @Create:2023/7/27 11:23
 * @Version: 1.0
 */
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {
    List<SpuSaleAttr> getSpuSaleAttrValueList(Long spuId);

    List<SpuSaleAttr> selectSpuSaleAttrListCheckBySku(@Param("skuId") Long skuId,@Param(("spuId")) Long spuId);

    List<Map> selectSaleAttrValuesBySpu(Long spuId);
}
